package com.fengpanlong.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import com.fengpanlong.entity.File;
import com.fengpanlong.util.DBHelp;
import com.fengpanlong.util.RowMapper;

public class FileDao {
	private DBHelp<File> db = new DBHelp<File>();
	
	
	
	
	
	
	private class FileRowMapper implements RowMapper<File> {

		public File mapperRow(ResultSet rs) throws SQLException {
			File f = new File();
			f.setId(rs.getString("id"));
			f.setName(rs.getString("name"));
			f.setFilename(rs.getString("filename"));
			f.setFilesize(rs.getString("filesize"));
			f.setCreatetime(rs.getString("createtime"));
			f.setFiletypeId(rs.getString("filetypeId"));
			f.setEmployeeId(rs.getString("employeeId"));
			return f;
		}
		
	}
}
